package com.neusoft.yiyang.diet.service;

import com.neusoft.yiyang.common.entity.diet.MealRecord;
import com.neusoft.yiyang.common.entity.diet.vto.FoodIdQuantity;
import com.neusoft.yiyang.common.entity.diet.vto.FoodItemDetail;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface MealRecordService {

    // 添加膳食执行记录
    void addMealRecord(Map<String, Map<String, List<FoodIdQuantity>>> customerFoods,
                       Date date, Integer customerId, Integer userId);

    // 获取所有膳食执行记录
    List<MealRecord> getAllMealRecords();

    // 根据客户ID获取膳食执行记录
    List<MealRecord> getMealRecordsByCustomerId(Integer customerId);

    // 更新膳食执行记录
    void updateMealRecord(MealRecord mealRecord);

    // 删除膳食执行记录
    void deleteMealRecord(Integer mealRecordId);

    Map<String, Map<String, List<FoodIdQuantity>>> getFoodRecord(Map<String, Map<String, FoodItemDetail>> mealData, Date date, Integer customerId);

    Map<String, Map<String, List<FoodIdQuantity>>> getFoodRecordPackage(Map<String, Map<String, FoodItemDetail>> mealData, Date date, String category);

    void addPackage(Map<String, Map<String, List<FoodIdQuantity>>> customerFoods, Date date, String category);
}
